package gui.playbook;

import java.awt.GridBagLayout;
import javax.swing.JPanel;
import java.awt.Dimension;
import java.awt.Rectangle;
import javax.swing.JLabel;
import javax.swing.ImageIcon;
import java.awt.GridBagConstraints;

public class PlayBook extends JPanel {

	private static final long serialVersionUID = 1L;
	private JPanel pnlPlayBookComponents = null;
	private JLabel lblField = null;
	private JLabel lblCone = null;
	private JLabel lblDeffender = null;
	private JLabel lblMove = null;
	private JLabel lblShoot = null;
	/**
	 * This is the default constructor
	 */
	public PlayBook() {
		super();
		initialize();
	}

	/**
	 * This method initializes this
	 * 
	 * @return void
	 */
	private void initialize() {
		lblField = new JLabel();
		lblField.setBounds(new Rectangle(130, 18, 587, 414));
		lblField.setIcon(new ImageIcon(getClass().getResource("/img/basketball_field.jpg")));
		lblField.setText("");
		this.setSize(730, 505);
		this.setLayout(null);
		this.add(getPnlPlayBookComponents(), null);
		this.add(lblField, null);
	}

	/**
	 * This method initializes pnlPlayBookComponents	
	 * 	
	 * @return javax.swing.JPanel	
	 */
	private JPanel getPnlPlayBookComponents() {
		if (pnlPlayBookComponents == null) {
			lblShoot = new JLabel();
			lblShoot.setBounds(new Rectangle(27, 190, 59, 34));
			lblShoot.setIcon(new ImageIcon(getClass().getResource("/img/basket/shoot.JPG")));
			lblShoot.setText("");
			lblMove = new JLabel();
			lblMove.setBounds(new Rectangle(24, 134, 66, 37));
			lblMove.setIcon(new ImageIcon(getClass().getResource("/img/basket/move.JPG")));
			lblMove.setText("");
			lblDeffender = new JLabel();
			lblDeffender.setBounds(new Rectangle(34, 83, 40, 36));
			lblDeffender.setIcon(new ImageIcon(getClass().getResource("/img/basket/deffender.JPG")));
			lblDeffender.setText("");
			lblCone = new JLabel();
			lblCone.setBounds(new Rectangle(35, 19, 42, 52));
			lblCone.setIcon(new ImageIcon(getClass().getResource("/img/basket/atacker.JPG")));
			lblCone.setText("");
			pnlPlayBookComponents = new JPanel();
			pnlPlayBookComponents.setLayout(null);
			pnlPlayBookComponents.setBounds(new Rectangle(11, 18, 117, 415));
			pnlPlayBookComponents.add(lblCone, null);
			pnlPlayBookComponents.add(lblDeffender, null);
			pnlPlayBookComponents.add(lblMove, null);
			pnlPlayBookComponents.add(lblShoot, null);
		}
		return pnlPlayBookComponents;
	}

}  //  @jve:decl-index=0:visual-constraint="10,10"
